home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 5
/
CD-ROM Today - The Disc (Issue 5)(November 1994).ISO
/
mac
/
Mac shareware
/
Education
/
RLaB
/
help
/
COMMAND_EDIT
< prev
next >
Wrap
Text File
|
1994-09-21
|
4KB
|
96 lines
COMMAND_EDIT:
Following is a description of the command line editing
key-bindings. Rlab can be configured to use the Getline (not
related to the Rlab getline function) editing interface, or
the GNU Readline editing interface. Both provide Emacs-style
command recall and editing.
The "getline" interface is the "preferred" interface due to
it's much smaller size, and lack of dependence on Termcap,
which makes it more portable. Following is an excerpt from the
Getline man-page, which describes the command editing
key-bindings.
User Interface
To edit, the user moves the cursor to the point needing
correction and then inserts or deletes characters or words
as needed. All the editing commands are control characters,
which typed by holding the CTRL key down while typing
another character. Control characters are indicated below
as the caret (^) followed by another character, such as ^A.
All edit commands operate from any place on the line, not
just at the beginning.
These are the getline key bindings.
^A Move cursor to beginning of line.
^B Move cursor left (back) 1 column.
ESC-B Move cursor back one word.
^D Delete the character under the cursor.
^E Move cursor to end of line.
^F Move cursor right (forward) 1 column.
ESC-F Move cursor forward one word.
^H Delete the character left of the cursor.@
^I Jump to next tab stop (may be redefined by the
program).
^J Return the current line.
^K Kill from cursor to the end of the line (see
^Y).
^L Redisplay current line.
^M Return the current line.
^N Fetches next line from the history list.
^O Toggle overwrite/insert mode, initially in
insert mode.
^P Fetches previous line from the history list.
^R Begin a reverse incremental search through his-
tory list. Each printing character typed adds
to the search substring (initially empty), and
getline finds and displays the first matching
location. Typing ^R again marks the current
starting location and begins a new search for
the current substring. Typing ^H or DEL deletes
the last character from the search string, and
getline restarts the search from the last start-
ing location. Repeated ^H or DEL characters
therefore appear to unwind the search to the
match nearest the point where the user last
typed ^R or ^S. Typing ^H or DEL until the
search string is empty causes getline to reset
the start of the search to the beginning of the
history list. Typing ESC or any other editing
character accepts the current match and ter-
minates the search.
^S Begin a forward incremental search through the
history list. The behavior is like that of ^R
but in the opposite direction through the his-
tory list.
^T Transpose current and previous character.
^U Kill the entire line (see ^Y).
^Y Yank previously killed text back at current
location.
BACKSPACE Delete the character left of the cursor.
DEL Delete the character left of the cursor.
RETURN Return the current line.
TAB Jump to next tab stop (may be redefined by the
program).
getline recognizes DOS and ANSI arrow keys. They cause the
following actions: up is the same as ^P, down is the same
as ^N, left is the same as ^P, and right is the same as ^F.
AUTHORS
Program by Christopher R. Thewalt (thewalt@ce.berkeley.edu)
Original man page by DaviD W. Sanderson (dws@cs.wisc.edu)
and Christopher R. Thewalt
COPYRIGHT
(C) Copyright 1992,1993 by Christopher R. Thewalt and DaviD
W. Sanderson (but freely redistributable)